package com.csii.ldap.entity;

import lombok.Data;
import org.springframework.ldap.odm.annotations.*;

import javax.naming.Name;
import java.util.Set;

/**
 * @author danjiawei
 * @desc
 * @date 2020/9/5
 */
@Data
@Entry(objectClasses = {"posixGroup", "top"})
public class Group {

    @Id
    private Name dn;

    @Attribute(name = "cn")
    private String cn;

    @Attribute(name = "gidNumber")
    private Integer gidNumber;

    @Attribute(name = "memberUid")
    private Set<String> memberUid;
}
